package homework01;

import homework.Sumtest;

/**
 * @ClassName Cylinder
 * @Description TODO
 * @Author 黑白灰色雨
 * @Date 2024/9/4 14:40
 * @Version 1.0
 */
public class Cylinder extends Circle{
    private double length;

    public Cylinder() {
        this.length = 1.0;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public double findVolume(){
        return findArea() *length;
    }
}
